﻿#建议保存编码为：bom头 + utf8

param
(
	# 改写这里，写让你的应用url
	#[string]$目的url = 'http://www.baidu.com/',
	[string]$目的url = '' ,

	[byte]$目的url探活超时秒 = 3
)

if ($目的url -eq '')
{
	return $false
}

try
{
	$null = Invoke-RestMethod -Uri $目的url -TimeoutSec $目的url探活超时秒 -UseBasicParsing
}
catch
{
	return $false
}
finally
{

}
return $true



